$(document).ready(function() {
	Helper.doms.enterSub("password",function(){
		$("#password").blur();
		$("#login_a").click();
	});
	$("#login_a").click(function(){
		var uname = $("#username").val();
		var upass = $("#password").val();
		var flag = Helper.login.validata(uname,upass);
		if(flag) {
			Helper.login.login(uname,upass,null,function(){
				Helper.getComponent("Helper_Window_nologin").onSuccess();
			},function(json){
				Helper.message(json.message);
			});
		}
	});
	$("#username").focus();
});